<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<h2>Choose an event ballot</h2>
<% @events.each do | event | %>
   <% event.items.each do | item | %>
     <%= event.name %>: <%= link_to item.name, :controller=>'election', :id=>item.id %>
  <% end %>
  <% event.elections.each do | item | %>
     <%= event.name %>: <%= link_to item.name, :controller=>'election', :id=>item.id %>
  <% end %>
<% end %>

